<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::io::Buffer&lt; T &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1io_1_1_buffer.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="classpcl_1_1io_1_1_buffer-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::io::Buffer&lt; T &gt; 模板类 参考<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="buffers_8h_source.html">buffers.h</a>&gt;</code></p>
<div class="dynheader">
类 pcl::io::Buffer&lt; T &gt; 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpcl_1_1io_1_1_buffer.png" usemap="#pcl::io::Buffer_3C_20T_20_3E_map" alt=""/>
  <map id="pcl::io::Buffer_3C_20T_20_3E_map" name="pcl::io::Buffer_3C_20T_20_3E_map">
<area href="classpcl_1_1io_1_1_average_buffer.html" alt="pcl::io::AverageBuffer&lt; T &gt;" shape="rect" coords="0,56,166,80"/>
<area href="classpcl_1_1io_1_1_median_buffer.html" alt="pcl::io::MedianBuffer&lt; T &gt;" shape="rect" coords="176,56,342,80"/>
<area href="classpcl_1_1io_1_1_single_buffer.html" alt="pcl::io::SingleBuffer&lt; T &gt;" shape="rect" coords="352,56,518,80"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:aea0db301ba9eb0f5d13d0f81728cc92d"><td class="memItemLeft" align="right" valign="top"><a id="aea0db301ba9eb0f5d13d0f81728cc92d"></a>
typedef T&#160;</td><td class="memItemRight" valign="bottom"><b>value_type</b></td></tr>
<tr class="separator:aea0db301ba9eb0f5d13d0f81728cc92d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aae263e2a2c1ad9a00e969107e6114144"><td class="memItemLeft" align="right" valign="top">virtual T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_buffer.html#aae263e2a2c1ad9a00e969107e6114144">operator[]</a> (size_t idx) const =0</td></tr>
<tr class="separator:aae263e2a2c1ad9a00e969107e6114144"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c5fe095483e68f8f0236c735bb26f01"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_buffer.html#a7c5fe095483e68f8f0236c735bb26f01">push</a> (std::vector&lt; T &gt; &amp;data)=0</td></tr>
<tr class="separator:a7c5fe095483e68f8f0236c735bb26f01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61d65111674c6735f4bffb1e6fcd4221"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_buffer.html#a61d65111674c6735f4bffb1e6fcd4221">size</a> () const</td></tr>
<tr class="separator:a61d65111674c6735f4bffb1e6fcd4221"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:a6a4ddaecba10826b2e4c71cb6ed8774b"><td class="memItemLeft" align="right" valign="top"><a id="a6a4ddaecba10826b2e4c71cb6ed8774b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Buffer</b> (size_t <a class="el" href="classpcl_1_1io_1_1_buffer.html#a61d65111674c6735f4bffb1e6fcd4221">size</a>)</td></tr>
<tr class="separator:a6a4ddaecba10826b2e4c71cb6ed8774b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:a22b520a614821071485fb7349f194fc9"><td class="memItemLeft" align="right" valign="top"><a id="a22b520a614821071485fb7349f194fc9"></a>
const size_t&#160;</td><td class="memItemRight" valign="bottom"><b>size_</b></td></tr>
<tr class="separator:a22b520a614821071485fb7349f194fc9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template&lt;typename T&gt;<br />
class pcl::io::Buffer&lt; T &gt;</h3>

<p>An abstract base class for fixed-size data buffers.</p>
<p>A new chunk of data can be inserted using the <a class="el" href="classpcl_1_1io_1_1_buffer.html#a7c5fe095483e68f8f0236c735bb26f01">push()</a> method; the data elements stored in the buffer can be accessed using <a class="el" href="classpcl_1_1io_1_1_buffer.html#aae263e2a2c1ad9a00e969107e6114144">operator[]()</a>.</p>
<p>Concrete implementations of this interface (such as <a class="el" href="classpcl_1_1io_1_1_average_buffer.html">AverageBuffer</a> or <a class="el" href="classpcl_1_1io_1_1_median_buffer.html">MedianBuffer</a>) may perform arbitrary data processing under the hood and provide access to certain quantities computed based on the input data rather than the data themselves.</p>
<dl class="section author"><dt>作者</dt><dd>Sergey Alexandrov </dd></dl>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="aae263e2a2c1ad9a00e969107e6114144"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae263e2a2c1ad9a00e969107e6114144">&#9670;&nbsp;</a></span>operator[]()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual T <a class="el" href="classpcl_1_1io_1_1_buffer.html">pcl::io::Buffer</a>&lt; T &gt;::operator[] </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>idx</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Access an element at a given index. </p>

<p>在 <a class="el" href="classpcl_1_1io_1_1_average_buffer.html#a1f96f886e2c0a3a457d114ff34076f0a">pcl::io::AverageBuffer&lt; T &gt;</a>, <a class="el" href="classpcl_1_1io_1_1_median_buffer.html#ae8f2c96d2c25ad8b7e6dc07fc835b8aa">pcl::io::MedianBuffer&lt; T &gt;</a> , 以及 <a class="el" href="classpcl_1_1io_1_1_single_buffer.html#a47c484fe686b34a596e364aa05545d2b">pcl::io::SingleBuffer&lt; T &gt;</a> 内被实现.</p>

</div>
</div>
<a id="a7c5fe095483e68f8f0236c735bb26f01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7c5fe095483e68f8f0236c735bb26f01">&#9670;&nbsp;</a></span>push()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classpcl_1_1io_1_1_buffer.html">pcl::io::Buffer</a>&lt; T &gt;::push </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Insert a new chunk of data into the buffer.</p>
<p>Note that the <em>data</em> parameter is not <code>const</code>-qualified. This is done to allow deriving classes to implement no-copy data insertion, where the data is "stolen" from the input argument. </p>

<p>在 <a class="el" href="classpcl_1_1io_1_1_average_buffer.html#a55b7d654955f994c200815cb42d24021">pcl::io::AverageBuffer&lt; T &gt;</a>, <a class="el" href="classpcl_1_1io_1_1_median_buffer.html#a7b36c0edcceab774b2b0d597f641ba7b">pcl::io::MedianBuffer&lt; T &gt;</a> , 以及 <a class="el" href="classpcl_1_1io_1_1_single_buffer.html#a779072752cf29aab6b92f33c8dd5acb2">pcl::io::SingleBuffer&lt; T &gt;</a> 内被实现.</p>

</div>
</div>
<a id="a61d65111674c6735f4bffb1e6fcd4221"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a61d65111674c6735f4bffb1e6fcd4221">&#9670;&nbsp;</a></span>size()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">size_t <a class="el" href="classpcl_1_1io_1_1_buffer.html">pcl::io::Buffer</a>&lt; T &gt;::size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Get the size of the buffer. </p>
<div class="fragment"><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        {</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;          <span class="keywordflow">return</span> (size_);</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        }</div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>io/include/pcl/io/<a class="el" href="buffers_8h_source.html">buffers.h</a></li>
<li>io/include/pcl/io/impl/<a class="el" href="buffers_8hpp_source.html">buffers.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><b>io</b></li><li class="navelem"><a class="el" href="classpcl_1_1io_1_1_buffer.html">Buffer</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
